<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="order by dede58.com"/>
    <title>不在职管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/layui/css/layui.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/personal.css" media="all">
</head>

<body>
<section class="layui-larry-box">
    <div class="larry-personal">
        <div class="layui-tab">
            <blockquote class="layui-elem-quote news_search">
                <div class="layui-inline">
                    <form class="layui-form">
                        <div class="layui-inline">

                            <div class="layui-inline">
                                <label class="layui-form-label">姓名</label>
                                <div class="layui-input-inline">
                                    <input value="" name="empname" placeholder="请输入姓名" class="layui-input search_input"
                                           type="text">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门</label>
                                <div class="layui-input-inline">
                                    <select name="deptid" class="newsLook" lay-filter="browseLook">
                                        <option value="">--请选择--</option>
                                        <c:forEach items="${ml}" var="m">
                                            <option value="${m.id}">${m.dname}</option>
                                        </c:forEach>

                                    </select>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">性别</label>
                                    <input type="radio" name="sex" value="男" title="男">
                                    <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                            class="layui-anim layui-icon"></i><span>男</span></div>
                                    <input type="radio" name="sex" value="女" title="女">
                                    <div class="layui-unselect layui-form-radio"><i
                                            class="layui-anim layui-icon"></i><span>女</span></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">职称</label>
                                <div class="layui-input-inline">
                                    <select name="jobid" class="newsLook" lay-filter="browseLook">
                                        <option value="">--请选择--</option>
                                        <c:forEach items="${jl}" var="j">
                                            <option value="${j.id}">${j.name}</option>
                                        </c:forEach>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <input class="layui-btn" type="submit" value="查询"/>
                                <a href="list?paixu=2" class="layui-btn">升序</a>
                                <a href="list?paixu=1" class="layui-btn">降序</a>
                            </div>
                        </div>
                    </form>

                    <script type="text/javascript" src="common/layui/layui.js"></script>
                    <script type="text/javascript" src="js/newsadd.js"></script>

                </div>
                <div class="layui-inline">
                    <a href="toadd" class="layui-btn layui-btn-normal">添加员工</a>
                </div>
            </blockquote>
            <!-- 操作日志 -->
            <div class="layui-form news_list">
                <table class="layui-table">

                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>编号</th>
                        <th>姓名</th>
                        <th>部门</th>
                        <th>性别</th>
                        <th>身份证号</th>
                        <th>出生日期</th>
                        <th>学历</th>
                        <th>职称</th>
                        <th>电话</th>
                        <th>操作</th>

                    </tr>
                    </thead>
                    <tbody class="news_content">
                    <c:forEach items="${empTshowfy.pl}" var="e">
                        <tr>
                            <td>${e.id}</td>
                            <td>${e.empid}</td>
                            <td>${e.empname}</td>
                            <td>${e.dname}</td>
                            <td>${e.sex}</td>
                            <td>${e.idcard}</td>
                            <td>${e.birthday}</td>
                            <td>${e.education}</td>
                            <td>${e.name}</td>
                            <td>${e.officephone}</td>
                            <td>
                                <a href="del?eid=${e.id}" class="layui-btn layui-btn-danger layui-btn-mini" data-id="1"><i
                                        class="layui-icon"></i> 删除</a>
                                <a href="toupdate?id=${e.id}" class="layui-btn layui-btn-mini"><i
                                        class="iconfont icon-edit"></i> 修改</a>
                                <a href="Toupdate?id=${e.id}" class="layui-btn layui-btn-mini"><i
                                        class="iconfont icon-edit"></i> 修改编号</a>
                                <a href="EmpJiLu?id=${e.id}" class="layui-btn layui-btn-mini"><i
                                        class="iconfont icon-edit"></i> 不在职记录</a>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
            <!-- 登录日志 -->
            <div class="layui-tab-item layui-field-box">
                <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                    <thead>
                    <tr>
                        <th><input type="checkbox" id="selected-all"></th>
                        <th>ID</th>
                        <th>管理员账号</th>
                        <th>状态</th>
                        <th>最后登录时间</th>
                        <th>上次登录IP</th>
                        <th>登录IP</th>
                        <th>IP所在位置</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td><input type="checkbox"></td>
                        <td>110</td>
                        <td>admin</td>
                        <td>后台登录成功</td>
                        <td>2016-12-19 14:26:03</td>
                        <td>127.0.0.1</td>
                        <td>127.0.0.1</td>
                        <td>Unknown</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="div" align="center">
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lt/list?currentPage=1">首页</a>
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lt/list?currentPage=${empTshowfy.currentPage-1<=0?1:empTshowfy.currentPage-1}">上一页</a>
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lt/list?currentPage=${empTshowfy.currentPage+1>=empTshowfy.totalPage?empTshowfy.totalPage:empTshowfy.currentPage+1}">下一页</a>
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lt/list?currentPage=${empTshowfy.totalPage}">尾页</a>
                <form class="font" action="${pageContext.request.contextPath}/lt/list">
                    到第<input class="input" type="text" name="currentPage"/>页
                    <input class="a layui-btn layui-btn-mini" type="submit" value="查询"/>
                </form>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/layui/layui.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/newslist.js"></script>
<script type="text/javascript">
</script>
</body>
</html>